package com.khyr.feign;

import com.khyr.entity.DictData;
import com.khyr.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "services-system", fallbackFactory = DictTypeFallbackFactory.class)
public interface DictTypeFeign {
    @GetMapping("/system/dictData/{dictType}")
    public R<List<DictData>> getDictDataByType(@PathVariable String dictType);
}